package com.ruoyi.project.easyexcel.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Date;


public class PsinfoAutomonirotDataAnomalSignExamine implements Serializable {
    private static final long serialVersionUID = -88509776792912019L;

    @ApiModelProperty("id")
    private String id;

    private String psId;
    private String mpId;

    private String indurstyCode;

    private String groupId;

    private LocalDateTime startTime;

    private LocalDateTime endTime;


    private Integer status;


    private String pollCode;


    private String reviseFlag;


    private String reviseFlagItem;


    private String proofId;


    private String remark;

    private Integer dataStatus;


    private String createdBy;


    private LocalDateTime createdTime;


    private String updatedBy;

    private LocalDateTime updatedTime;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPsId() {
        return psId;
    }

    public void setPsId(String psId) {
        this.psId = psId;
    }

    public String getMpId() {
        return mpId;
    }

    public void setMpId(String mpId) {
        this.mpId = mpId;
    }

    public String getIndurstyCode() {
        return indurstyCode;
    }

    public void setIndurstyCode(String indurstyCode) {
        this.indurstyCode = indurstyCode;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPollCode() {
        return pollCode;
    }

    public void setPollCode(String pollCode) {
        this.pollCode = pollCode;
    }

    public String getReviseFlag() {
        return reviseFlag;
    }

    public void setReviseFlag(String reviseFlag) {
        this.reviseFlag = reviseFlag;
    }

    public String getReviseFlagItem() {
        return reviseFlagItem;
    }

    public void setReviseFlagItem(String reviseFlagItem) {
        this.reviseFlagItem = reviseFlagItem;
    }

    public String getProofId() {
        return proofId;
    }

    public void setProofId(String proofId) {
        this.proofId = proofId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDataStatus() {
        return dataStatus;
    }

    public void setDataStatus(Integer dataStatus) {
        this.dataStatus = dataStatus;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Date getStartTimeByDate(){
        if(startTime!=null){
            return Date.from(startTime.toInstant(ZoneOffset.ofHours(8)));
        }
        return null;
    }

    public  Date getEndTimeByDate(){
        if(endTime!=null){
            return Date.from(endTime.toInstant(ZoneOffset.ofHours(8)));
        }
        return null;
    }

    public void  setStartTimeByDate(Date startTime){
        this.startTime=LocalDateTime.ofInstant(startTime.toInstant(),ZoneOffset.ofHours(8));
    }
    public void  setEndTimeByDate(Date endTime){
        if (endTime != null) {
            this.endTime=LocalDateTime.ofInstant(endTime.toInstant(),ZoneOffset.ofHours(8));
        }

    }

}

